package com.sanjiahantang.youjiaclient.module.match.beans;

import com.google.gson.Gson;
import com.sanjiahantang.youjiaclient.base.BaseBean;

import java.util.List;

/**
 * Created by zy on 2017/9/29.
 */

public class MatchBean extends BaseBean {

    private String data;

    public Data getData() {
        return new Gson().fromJson(data,Data.class);
    }

    public void setData(String data) {
        this.data = data;
    }

    public static class Goods {
        private String goodsName;
        private double basePrice;
        private double salePrice;
        private int mgiId;
        private String url;
        private int mbiId;
        private String supplyName;
        private int isRecommendIndex;
        private int isOnline;
        private String styleGoodsId;
        private String typeGoodsName;
        private int mgpciId;
        private String mgcName;
        private int typeGoodsId;
        private int isExperienceShow;
        private String mbiName;
        private String unit;
        private int mgcId;
        private String supplyId;
        private int isSale;
        private int payTemplateId;
        private String styleGoodName;

        public double getSalePrice() {
            return salePrice;
        }

        public void setSalePrice(double salePrice) {
            this.salePrice = salePrice;
        }

        public String getTitle() {
            return goodsName;
        }

        public void setTitle(String title) {
            this.goodsName = title;
        }

        public int getMgiId() {
            return mgiId;
        }

        public void setMgiId(int mgiId) {
            this.mgiId = mgiId;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public double getBasePrice() {
            return basePrice;
        }

        public void setBasePrice(double basePrice) {
            this.basePrice = basePrice;
        }

        public int getMbiId() {
            return mbiId;
        }

        public void setMbiId(int mbiId) {
            this.mbiId = mbiId;
        }

        public String getSupplyName() {
            return supplyName;
        }

        public void setSupplyName(String supplyName) {
            this.supplyName = supplyName;
        }

        public int getIsRecommendIndex() {
            return isRecommendIndex;
        }

        public void setIsRecommendIndex(int isRecommendIndex) {
            this.isRecommendIndex = isRecommendIndex;
        }

        public int getIsOnline() {
            return isOnline;
        }

        public void setIsOnline(int isOnline) {
            this.isOnline = isOnline;
        }

        public String getStyleGoodsId() {
            return styleGoodsId;
        }

        public void setStyleGoodsId(String styleGoodsId) {
            this.styleGoodsId = styleGoodsId;
        }

        public String getTypeGoodsName() {
            return typeGoodsName;
        }

        public void setTypeGoodsName(String typeGoodsName) {
            this.typeGoodsName = typeGoodsName;
        }

        public int getMgpciId() {
            return mgpciId;
        }

        public void setMgpciId(int mgpciId) {
            this.mgpciId = mgpciId;
        }

        public String getMgcName() {
            return mgcName;
        }

        public void setMgcName(String mgcName) {
            this.mgcName = mgcName;
        }

        public int getTypeGoodsId() {
            return typeGoodsId;
        }

        public void setTypeGoodsId(int typeGoodsId) {
            this.typeGoodsId = typeGoodsId;
        }

        public int getIsExperienceShow() {
            return isExperienceShow;
        }

        public void setIsExperienceShow(int isExperienceShow) {
            this.isExperienceShow = isExperienceShow;
        }

        public String getMbiName() {
            return mbiName;
        }

        public void setMbiName(String mbiName) {
            this.mbiName = mbiName;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public int getMgcId() {
            return mgcId;
        }

        public void setMgcId(int mgcId) {
            this.mgcId = mgcId;
        }

        public String getSupplyId() {
            return supplyId;
        }

        public void setSupplyId(String supplyId) {
            this.supplyId = supplyId;
        }

        public int getIsSale() {
            return isSale;
        }

        public void setIsSale(int isSale) {
            this.isSale = isSale;
        }

        public int getPayTemplateId() {
            return payTemplateId;
        }

        public void setPayTemplateId(int payTemplateId) {
            this.payTemplateId = payTemplateId;
        }

        public String getStyleGoodName() {
            return styleGoodName;
        }

        public void setStyleGoodName(String styleGoodName) {
            this.styleGoodName = styleGoodName;
        }
    }

    public static class Data{

        /**
         *  {
         "togetherList": [
         {
         "mgiId": 1086,
         "goodsName": "跳跳沙发",
         "basePrice": 333
         },
         {
         "mgiId": 1085,
         "goodsName": "施工服务费",
         "basePrice": 333
         },
         {
         "mgiId": 1078,
         "goodsName": "吊灯",
         "basePrice": 22
         },
         {
         "mgiId": 1082,
         "goodsName": "坐便器",
         "basePrice": 333
         }
         ],
         "subjectsName": "这是测试搭配",
         "mgtiId": 105,
         "url": "upload/2017/10/11\\u=1267607011,2727279265&fm=214&gp=0.jpg"
         },
         */
        private String subjectsName;


        private String url;
        private int mgtiId;
        private List<MatchItem> togetherList;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getSubjectsName() {
            return subjectsName;
        }

        public void setSubjectsName(String subjectsName) {
            this.subjectsName = subjectsName;
        }

        public List<MatchItem> getTogetherList() {
            return togetherList;
        }

        public void setTogetherList(List<MatchItem> togetherList) {
            this.togetherList = togetherList;
        }

        public int getMgtiId() {
            return mgtiId;
        }

        public void setMgtiId(int mgtiId) {
            this.mgtiId = mgtiId;
        }
    }

    public static class MatchItem{
        private String content;
        private int mgtiId;
        private int mgtdiId;
        private List<Goods> goodsList;

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public int getMgtiId() {
            return mgtiId;
        }

        public void setMgtiId(int mgtiId) {
            this.mgtiId = mgtiId;
        }

        public int getMgtdiId() {
            return mgtdiId;
        }

        public void setMgtdiId(int mgtdiId) {
            this.mgtdiId = mgtdiId;
        }

        public List<Goods> getGoodsList() {
            return goodsList;
        }

        public void setGoodsList(List<Goods> goodsList) {
            this.goodsList = goodsList;
        }
    }
}
